<%-- 
    Document   : cadUsuario
    Created on : 07/10/2011, 09:25:16
    Author     : a968340
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="layout.css" media="screen" />
    </head>
    <body>
        <h1>CADASTRO DE USUARIO</h1>
        <form name="cad" action="ServletCadUsuario" method="POST">
            <p> Login: <input type="text" name="login" value="" /></p>
            <p> Senha: <input type="password" name="senha1" value="" /> </p>
            <p> Confirmar Senha: <input type="password" name="senha2" value="" /> </p>
            <p> Nome: <input type="text" name="nome" value="" /> </p>
            <p> Data de Nascimento: <input type="text" name="dtNasc" value="" /> </p>
            <%
                String erro = (String) request.getAttribute("erro");
                if(erro != null) {
                    out.println("<p>"+erro+"</p>");
                }
            %>
            <p> <input type="submit" value="Cadastrar" name="ok" />
                <input type="reset" value="Limpar" /> </p>
        </form>
    </body>
</html>
